package com.lz.ovuola.util.aop;

import org.aspectj.lang.annotation.Pointcut;

/**
 * http://docs.spring.io/spring/docs/current/spring-framework-reference/
 * htmlsingle/#aop-api-pointcuts
 * 
 * @author fz
 *
 */
public abstract class PointCut {
	/**
	 * 任意方法
	 */
	public static final String TARGET_ANY_METHOD = "execution(public * com.lz.ovuola.service..*.*(..))";
	/**
	 * 数据源
	 */
	public static final String TARGET_DATA_SOURCE = "execution(public * com.lz.ovuola.service..*.*(..)) && @annotation(ds)";
	/**
	 * 缓存
	 */
	public static final String TARGET_CACHE = "execution(public * com.lz.ovuola.service..*.*(..)) && @annotation(cache)";

	@Pointcut("execution(public * com.lz.ovuola.service..*.*(..))")
	public void anyMethod() {
	}// 定义一个切入点

}
